package com.smart.village.big.screen.mapper;

import com.alibaba.fastjson.JSONObject;
import com.smart.village.big.screen.domain.Videos;
import com.smart.village.big.screen.domain.VideosCategory;
import com.smart.village.big.screen.domain.VideosTags;
import org.apache.ibatis.annotations.Mapper;

import java.util.HashMap;
import java.util.List;

@Mapper
public interface VideosMapper {
    List<Videos> getVideosByCategory(String categorySerialNumber,String search,int environment);
    List<HashMap<String,Object>> getVideosCategoryChildIdList(String categorySerialNumber);
    HashMap<String,Object> getVideosCategoryByCategorySerialNumber(String categorySerialNumber);

    Videos getVideosDetail(String videoSerialNumber);

    void addViewCount(String videoSerialNumber);

    List<VideosTags> getVideosTagsList(String tagSerialNumber,String parentSerialNumber);

    List<VideosCategory> getOneLevelCategory();

    List<VideosCategory> selectTreeListByParentSerialNumber(String videoCategorySerialNumber);

    List<Videos> getVideosByTags(String videoTagSerialNumber, String search,int environment);

    VideosTags getVideosTagsByTagsSerialNumber(String videoTagSerialNumber);

    List<Videos> searchYunShiDangKeLimit(int cnt,int environment);

    List<Videos> searchHongSeGuanYingLimit(int cnt,int environment);

    List<Videos> getMicroRedLookVideo(String tags,int environment);

    JSONObject getLastRecentViewRecord(String videoSerialNumber, String phone);
}
